package lagou.util;
/*
* 编程实现通话套餐类
* */
public class MealType implements TelServiceIn{
    public byte time;         //通话时长
    public int message_num;   //短信条数
    public byte payment;       //每月资费

    public void setTime(byte time) {
         this.time=time;
    }

    public void setMessage_num(int message_num) {
        this.message_num = message_num;
    }

    public void setPayment(byte payment) {
        this.payment = payment;
    }

    public byte getTime() {
        return time;
    }

    public int getMessage_num() {
        return message_num;
    }

    public byte getPayment() {
        return payment;
    }
    public MealType(byte time,int message_num,byte payment){
        setTime(time);
        setMessage_num(message_num);
        setPayment(payment);
    }

    public void show(){
        System.out.println("通话时长为："+time);
        System.out.println("短信条数为："+message_num);
        System.out.println("每月资费为："+payment);
    }

    @Override
    public void gettel(byte time, Card c) {
        System.out.println("实现通话服务接口");
    }
}
